package com.zhx.learn.quartz.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * <p>
 * 定时任务表
 * </p>
 *
 * @author zhanghaixuan
 * @since 2018-08-06
 */
@Data
@Entity
@Table(name = "saas_job")
public class SaasJob implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 定时任务ID
     */
	@Id
    private String uid;
    /**
     * 定时任务名称
     */
    private String jobName;
    /**
     * 任务组名
     */
    private String jobGroup;
    /**
     * 任务方法
     */
    private String methodName;
    /**
     * 方法参数
     */
    private String methodParams;
    /**
     * 执行表达式 
     */
    private String cronExpression;
    /**
     * 计划策略 
     */
    private String misfirePolicy;
    /**
     * 任务状态
     */
    private String status;
}
